interface IStateItem {
  id: number,
  title: string
}

interface IDeleteDepartParam {
  id: number
}

interface IAddDepartParam {
  title: string
}
interface IUpdateDepartParam {
  id: number,
  title: string
}

export interface IState {
  departList: Array<IStateItem>,
}

export interface IActions {
  requestDepartListAction: () => void,
  deleteDepartAction: (params: IDeleteDepartParam) => void,
  addDepartAction: (params: IAddDepartParam) => Promise<boolean>,
  updateDepartAction: (params: IUpdateDepartParam) => Promise<boolean>,
}

// 加个enum
export enum URL_TYPE {
  DEPART_ADD = "depart/add",
  DEPART_DELETE = "depart/delete",
  DEPART_LIST = "depart/list",
  DEPART_UPDATE = "depart/update"
}
